package com.atguigu.tingshu.user.client.impl;


import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.user.client.UserFeignClient;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Slf4j
public class UserDegradeFeignClient implements UserFeignClient {

    /**
     * 根据用户ID查询用户信息
     * /api/user/userInfo/getUserInfoVo/{userId}
     * @param userId
     * @return
     */
    @Override
    public Result<UserInfoVo> getUserInfoVo(Long userId) {
        log.error("[UserInfoVo]微服务的【getUserInfoVo】方法，参数{}",userId);
        return Result.fail();
    }

    @Override
    public Result<Map<Long, Integer>> userPaidTrack(List<Long> waitCheckTrackIdList, Long userId, Long albumId) {
        log.error("[UserInfoVo]微服务的【userPaidTrack】方法，参数{},{},{}",waitCheckTrackIdList,userId,albumId);
        return Result.fail();
    }
}
